import _0x4e3c60 from 'js-sha256'
import { useUserStore } from '@/store'

var version_ = 'jsjiami.com.v7'
function _0x18eb(_0x562fd4, _0x5aa688) {
  const _0x5c79f8 = _0x11d7()
  return (
    (_0x18eb = function (_0x4afcc8, _0x39d3bf) {
      _0x4afcc8 -= 0xd0
      let _0x11d7ae = _0x5c79f8[_0x4afcc8]
      if (_0x18eb.UzHnBB === undefined) {
        const _0x18ebec = function (_0xa5ca9e) {
          const _0x59e76c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/='
          let _0x3f28a2 = ''
          let _0x57582e = ''
          for (
            let _0x151ce5 = 0x0, _0x5bf22d, _0x54ad73, _0x18afc0 = 0x0;
            (_0x54ad73 = _0xa5ca9e.charAt(_0x18afc0++));
            ~_0x54ad73 && ((_0x5bf22d = _0x151ce5 % 0x4 ? _0x5bf22d * 0x40 + _0x54ad73 : _0x54ad73), _0x151ce5++ % 0x4)
              ? (_0x3f28a2 += String.fromCharCode(0xff & (_0x5bf22d >> ((-0x2 * _0x151ce5) & 0x6))))
              : 0x0
          ) {
            _0x54ad73 = _0x59e76c.indexOf(_0x54ad73)
          }
          for (let _0x3cc167 = 0x0, _0x3219a6 = _0x3f28a2.length; _0x3cc167 < _0x3219a6; _0x3cc167++) {
            _0x57582e += `%${`00${_0x3f28a2.charCodeAt(_0x3cc167).toString(0x10)}`.slice(-0x2)}`
          }
          return decodeURIComponent(_0x57582e)
        }
        const _0x39f6c9 = function (_0x37aae2, _0x18d21f) {
          const _0x2ff1da = []
          let _0x3d63f4 = 0x0
          let _0x196979
          let _0x13b3f9 = ''
          _0x37aae2 = _0x18ebec(_0x37aae2)
          let _0x3f7331
          for (_0x3f7331 = 0x0; _0x3f7331 < 0x100; _0x3f7331++) {
            _0x2ff1da[_0x3f7331] = _0x3f7331
          }
          for (_0x3f7331 = 0x0; _0x3f7331 < 0x100; _0x3f7331++) {
            ;(_0x3d63f4 =
              (_0x3d63f4 + _0x2ff1da[_0x3f7331] + _0x18d21f.charCodeAt(_0x3f7331 % _0x18d21f.length)) % 0x100),
              (_0x196979 = _0x2ff1da[_0x3f7331]),
              (_0x2ff1da[_0x3f7331] = _0x2ff1da[_0x3d63f4]),
              (_0x2ff1da[_0x3d63f4] = _0x196979)
          }
          ;(_0x3f7331 = 0x0), (_0x3d63f4 = 0x0)
          for (let _0x4ab710 = 0x0; _0x4ab710 < _0x37aae2.length; _0x4ab710++) {
            ;(_0x3f7331 = (_0x3f7331 + 0x1) % 0x100),
              (_0x3d63f4 = (_0x3d63f4 + _0x2ff1da[_0x3f7331]) % 0x100),
              (_0x196979 = _0x2ff1da[_0x3f7331]),
              (_0x2ff1da[_0x3f7331] = _0x2ff1da[_0x3d63f4]),
              (_0x2ff1da[_0x3d63f4] = _0x196979),
              (_0x13b3f9 += String.fromCharCode(
                _0x37aae2.charCodeAt(_0x4ab710) ^ _0x2ff1da[(_0x2ff1da[_0x3f7331] + _0x2ff1da[_0x3d63f4]) % 0x100]
              ))
          }
          return _0x13b3f9
        }
        ;(_0x18eb.DoUykG = _0x39f6c9), (_0x562fd4 = arguments), (_0x18eb.UzHnBB = !![])
      }
      const _0x10d0f3 = _0x5c79f8[0x0]
      const _0x5d6cae = _0x4afcc8 + _0x10d0f3
      const _0x234a0e = _0x562fd4[_0x5d6cae]
      return (
        !_0x234a0e
          ? (_0x18eb.ptiOoO === undefined && (_0x18eb.ptiOoO = !![]),
            (_0x11d7ae = _0x18eb.DoUykG(_0x11d7ae, _0x39d3bf)),
            (_0x562fd4[_0x5d6cae] = _0x11d7ae))
          : (_0x11d7ae = _0x234a0e),
        _0x11d7ae
      )
    }),
    _0x18eb(_0x562fd4, _0x5aa688)
  )
}
;((function (_0x301a24, _0x2361bf, _0x3af6fd, _0x1a9523, _0x1934d9, _0x211227, _0x33294a) {
  return (
    (_0x301a24 >>= 0x8),
    (_0x211227 = 'hs'),
    (_0x33294a = 'hs'),
    (function (_0x84c9b0, _0xf11b3e, _0x3d1922, _0x4c4081, _0x5ec91d) {
      const _0x206a3a = _0x18eb
      ;(_0x4c4081 = 'tfi'),
        (_0x211227 = _0x4c4081 + _0x211227),
        (_0x5ec91d = 'up'),
        (_0x33294a += _0x5ec91d),
        (_0x211227 = _0x3d1922(_0x211227)),
        (_0x33294a = _0x3d1922(_0x33294a)),
        (_0x3d1922 = 0x0)
      const _0x4cf41b = _0x84c9b0()
      while (!![] && --_0x1a9523 + _0xf11b3e) {
        try {
          _0x4c4081 =
            (parseInt(_0x206a3a(0xf6, 'Z0)H')) / 0x1) * (parseInt(_0x206a3a(0x108, '8Dc7')) / 0x2) +
            -parseInt(_0x206a3a(0xdc, 'T4hd')) / 0x3 +
            (-parseInt(_0x206a3a(0x106, 'T8i8')) / 0x4) * (-parseInt(_0x206a3a(0xdb, 'mc3S')) / 0x5) +
            -parseInt(_0x206a3a(0xfe, 'HdOk')) / 0x6 +
            (-parseInt(_0x206a3a(0x10a, 'c6zn')) / 0x7) * (parseInt(_0x206a3a(0x110, 'T4hd')) / 0x8) +
            parseInt(_0x206a3a(0xeb, '3AKM')) / 0x9 +
            (-parseInt(_0x206a3a(0xe9, 'n$TB')) / 0xa) * (-parseInt(_0x206a3a(0x100, 'R3)%')) / 0xb)
        } catch (_0x2bbcf5) {
          _0x4c4081 = _0x3d1922
        } finally {
          _0x5ec91d = _0x4cf41b[_0x211227]()
          if (_0x301a24 <= _0x1a9523)
            _0x3d1922 ? (_0x1934d9 ? (_0x4c4081 = _0x5ec91d) : (_0x1934d9 = _0x5ec91d)) : (_0x3d1922 = _0x5ec91d)
          else if (_0x3d1922 == _0x1934d9.replace(/[qdIbFLCMQElRUPTVhet=]/g, '')) {
            if (_0x4c4081 === _0xf11b3e) {
              _0x4cf41b[`un${_0x211227}`](_0x5ec91d)
              break
            }
            _0x4cf41b[_0x33294a](_0x5ec91d)
          }
        }
      }
    })(_0x3af6fd, _0x2361bf, function (_0x5149cc, _0x248e4e, _0x48bcd9, _0x275586, _0x335204, _0x1c14b4, _0x51b7dd) {
      return (
        (_0x248e4e = '\x73\x70\x6c\x69\x74'),
        (_0x5149cc = arguments[0x0]),
        (_0x5149cc = _0x5149cc[_0x248e4e]('')),
        (_0x48bcd9 = '\x72\x65\x76\x65\x72\x73\x65'),
        (_0x5149cc = _0x5149cc[_0x48bcd9]('\x76')),
        (_0x275586 = '\x6a\x6f\x69\x6e'),
        (0x125063, _0x5149cc[_0x275586](''))
      )
    })
  )
})(0xbd00, 0xc4274, _0x11d7, 0xbf),
_0x11d7) && (version_ = _0x11d7)
const _0x2d822a = (function () {
  let _0x527e17 = !![]
  return function (_0x55b638, _0xa96546) {
    const _0x462a51 = _0x527e17
      ? function () {
          const _0x20ab5d = _0x18eb
          if (_0xa96546) {
            const _0x595715 = _0xa96546[_0x20ab5d(0xfa, 'HdOk')](_0x55b638, arguments)
            return (_0xa96546 = null), _0x595715
          }
        }
      : function () {}
    return (_0x527e17 = ![]), _0x462a51
  }
})()
const _0xda8150 = _0x2d822a(this, function () {
  const _0x293ffc = _0x18eb
  const _0x48ebea = {
    wPNLk(_0x4b525d, _0x1f6097) {
      return _0x4b525d !== _0x1f6097
    },
    eRkdS: _0x293ffc(0xf1, 'r07Z'),
    ePHfK(_0x38e341, _0x4ebf31) {
      return _0x38e341 === _0x4ebf31
    },
    TfKCg: _0x293ffc(0xff, 'Z0)H'),
    Fihsv: _0x293ffc(0x10d, 'MfX)'),
    PhryN: _0x293ffc(0xe7, 'ThN8'),
    vTnmj: _0x293ffc(0xd9, '0uU]'),
    jwqOC: _0x293ffc(0xed, '3AKM'),
    uFOYr: _0x293ffc(0xec, 'ThN8'),
    OipVE: _0x293ffc(0xd6, '2Ll9'),
    jNxbb: _0x293ffc(0xe2, 'Dwj9'),
    IoICP: _0x293ffc(0xe1, 'fW@*'),
    XAkPX(_0x2d2d26, _0x483b8d) {
      return _0x2d2d26 < _0x483b8d
    },
    NZqsx(_0xd857fa, _0x40a41f) {
      return _0xd857fa !== _0x40a41f
    },
    wMyUW: _0x293ffc(0xee, 'o^j*'),
  }
  const _0x512e6e = _0x48ebea[_0x293ffc(0xe4, '3AKM')](typeof window, _0x48ebea[_0x293ffc(0xd0, 'nR@Q')])
    ? window
    : _0x48ebea[_0x293ffc(0x104, 'RbR)')](typeof process, _0x48ebea[_0x293ffc(0xd4, 'qtIk')]) &&
      _0x48ebea[_0x293ffc(0x113, 'wkkE')](typeof require, _0x48ebea[_0x293ffc(0x111, 'r07Z')]) &&
      _0x48ebea[_0x293ffc(0xfd, 'FOAY')](typeof global, _0x48ebea[_0x293ffc(0xfb, '3AKM')])
    ? global
    : this
  const _0x2df40d = (_0x512e6e[_0x293ffc(0xf8, 'A8y8')] = _0x512e6e[_0x293ffc(0xf3, 'DA^U')] || {})
  const _0x341860 = [
    _0x48ebea[_0x293ffc(0xef, 'fW@*')],
    _0x48ebea[_0x293ffc(0xd5, 'DA^U')],
    _0x48ebea[_0x293ffc(0x10f, 'HdOk')],
    _0x48ebea[_0x293ffc(0xf5, 'mc3S')],
    _0x48ebea[_0x293ffc(0xe5, 'mc3S')],
    _0x48ebea[_0x293ffc(0xe3, 'mNBM')],
    _0x48ebea[_0x293ffc(0xde, 'Wm^R')],
  ]
  for (
    let _0x21892c = 0x0;
    _0x48ebea[_0x293ffc(0xfc, 'm)g9')](_0x21892c, _0x341860[_0x293ffc(0xea, 'g0fh')]);
    _0x21892c++
  ) {
    if (_0x48ebea[_0x293ffc(0x10c, 'm)g9')](_0x48ebea[_0x293ffc(0xd7, 'lQ0C')], _0x48ebea[_0x293ffc(0xd8, 'Dn4c')])) {
      const _0x4f1555 = _0x42dac4[_0x293ffc(0x107, 'wkkE')](_0x3d9ca5, arguments)
      return (_0x6e9415 = null), _0x4f1555
    }
    const _0x5585b5 = _0x2d822a[_0x293ffc(0xdd, 'mc3S')][_0x293ffc(0xd1, 'Dwj9')][_0x293ffc(0x105, '[V)I')](_0x2d822a)
    const _0x1bf33b = _0x341860[_0x21892c]
    const _0x308229 = _0x2df40d[_0x1bf33b] || _0x5585b5
    ;(_0x5585b5[_0x293ffc(0x10e, '!xh0')] = _0x2d822a[_0x293ffc(0x109, 'jjFI')](_0x2d822a)),
      (_0x5585b5[_0x293ffc(0xf0, 'hjtT')] = _0x308229[_0x293ffc(0xf9, 'pVIo')][_0x293ffc(0xf4, '0uU]')](_0x308229)),
      (_0x2df40d[_0x1bf33b] = _0x5585b5)
  }
})
_0xda8150()
function _0x11d7() {
  const _0x1b59c4 = (function () {
    return [
      ...[
        version_,
        'IjMlsIjTMiVIQaUmiCR.bFcRom.PvEd7PhtLVReq==',
        'D8kozu9eW6bKhflcTmkewhS',
        'sd/cQeyj',
        's2NdKri4',
        'W6ZcOx/cLu8',
        'W7/dHKOjWPy',
        'WRj4W7uZW6u',
        'qSojWQH3WRu3W6VcRIldQvFcRq',
        'WPxcK0S',
        'qSofWQz3WR85WRxcUXVdT1hcPmkG',
        'nYrTcmowWQVdNSoEoWTWWPW',
        'nbTghHxcIa',
        'WRVcPJ1WW4ZdINDxW497W4ZdRCom',
        'WPZcJL7cPhC',
        'W6hdUgiQ',
        'cXHvpc4',
        'BcxcU1WI',
        'hrbDW7VdJYHzWRO',
        'wwNdKSk4jaNcRbxcNW',
        'W6KzWPuazeFdQa',
        'h8kGxCo9WRLtqW',
        'lKpcJGa',
        'WOHxW4O8W5i',
      ],
      ...(function () {
        return [
          ...[
            'E8oootyTWQmc',
            'xX8BW6RdQSorl8o6W7ZdH8k7WRjc',
            'xc3cOCkqW5xdICoY',
            'eMVcIcPil1Dz',
            'W7D4umoqcW',
            'W5ZdSe8gWPO',
            'W5fHjJO/',
            'W4PydSoXEG',
            'WQ4+gCkps0eskIjrWRxcTbq',
            'imoAnHKEWQu',
            'vxmwaevkbdFdGW',
            'WRSyEsaeW7tdKhZcPa',
            'W58CWQTOW4zt',
            'cmk3hZSL',
            'pLtcN0RcLW',
            'DIilaG',
            'W69xW4qav1ldH8k+WOm',
            'WQabWQr0cW',
            'W4TYBJvUWPOQdqmtWPff',
            'WPGrDY4',
            'WO8dWP8/WPdcVCk7',
            'zq1QlHxcUNC',
            'W4D6pbKF',
            'WPxcL2uFW67cTmkJfW',
          ],
          ...(function () {
            return [
              'uCouW41xW4NcQH4CWRi',
              'W7X/uCoZmq',
              'f8kxoCovmwmCW6NcIvZcLhqc',
              'AM7dNSkUna',
              'A0GBfslcG8oNqZm',
              'WQqHWPX+oq',
              'WRNcRXFdMSkD',
              't3RdNaOYsMVcM0i',
              'i8oWW4vut8o0ygf6W59VWOu',
              'jmoXW4bvrSoWBKLlW7DcWOK',
              'BNJdGSkuWOu',
              'cSkBxCoJWRW',
              'wemMAv5dW49qwq',
              'W47dUfClua',
              'WQ/dNZ7cICoe',
              'o0VcKGO',
              'W5LCz8oPna',
              'W44PWRvCWPu8zfhcPftcMG',
              'f8kBn8ovo21cW7ZcSelcKN0',
              'WP5+W6SwW5qNEwFcSvlcPG',
              't1VdMNJdQa',
              'W65xW4bZavZdLSkKWOnTWR4',
            ]
          })(),
        ]
      })(),
    ]
  })()
  _0x11d7 = function () {
    return _0x1b59c4
  }
  return _0x11d7()
}
const _0x23983b = useUserStore()
export const secret = _0x11ddaa => {
  const _0x12523b = _0x18eb
  const _0x3579ee = {
    Mbqga(_0x3a4092, _0x176a0e) {
      return _0x3a4092(_0x176a0e)
    },
    OTGUF(_0x498c7c, _0x3d20bc) {
      return _0x498c7c + _0x3d20bc
    },
  }
  const { token: _0x4d57e4, uid: _0x4524f6 } = _0x23983b
  return {
    Authorization: _0x4d57e4,
    'x-sendData': _0x11ddaa,
    'x-sign': _0x3579ee[_0x12523b(0x103, '^Q#0')](_0x2a33e5, _0x3579ee[_0x12523b(0xda, 'HdOk')](_0x11ddaa, _0x4524f6)),
  }
}
const _0x2a33e5 = _0x487ccf => {
  const _0x1f3b06 = _0x18eb
  return _0x4e3c60[_0x1f3b06(0x102, 'dX3j')](_0x487ccf)
}
var version_ = 'jsjiami.com.v7'
